this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["single-product"]=function(e){function t(t){for(var r,a,s=t[0],i=t[1],l=t[2],d=0,m=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&m.push(o[a][0]),o[a]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);for(u&&u(t);m.length;)m.shift()();return n.push.apply(n,l||[]),c()}function c(){for(var e,t=0;t<n.length;t++){for(var c=n[t],r=!0,s=1;s<c.length;s++){var i=c[s];0!==o[i]&&(r=!1)}r&&(n.splice(t--,1),e=a(a.s=c[0]))}return e}var r={},o={54:0},n=[];function a(t){if(r[t])return r[t].exports;var c=r[t]={i:t,l:!1,exports:{}};return e[t].call(c.exports,c,c.exports,a),c.l=!0,c.exports}a.e=function(e){var t=[],c=o[e];if(0!==c)if(c)t.push(c[2]);else{var r=new Promise((function(t,r){c=o[e]=[t,r]}));t.push(c[2]=r);var n,s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=function(e){return a.p+""+({1:"product-add-to-cart--product-average-rating--product-button--product-image--product-price--product---1d132d69",2:"product-average-rating--product-button--product-image--product-price--product-rating--product-ratin--e23975b5",3:"product-add-to-cart--product-button--product-rating--product-rating-counter--product-rating-stars",4:"product-add-to-cart--product-image--product-title",22:"product-add-to-cart",23:"product-average-rating",25:"product-button",32:"product-image",35:"product-price",37:"product-rating",38:"product-rating-counter",39:"product-rating-stars",41:"product-sale-badge",43:"product-sku",44:"product-stock-indicator",45:"product-summary",48:"product-title"}[e]||e)+".js?ver="+{1:"a53104b51aebffdec5c5",2:"b2ea0e89285af14743d0",3:"44207eca1a6164e11e1b",4:"38f39bad8cea16b6d010",22:"fd848aeedd42c48ffe85",23:"34b242ac43167b66d3ce",25:"8248a3bcd0e2be4c9923",32:"15ca729a17c92936f86f",35:"7e1845ab55da984d1252",37:"35e424800f0a65e5e921",38:"7560a5a7089a046982fd",39:"26fc5791bdcf249fd5de",41:"a7b8af5f0d1f0bff4b82",43:"87c0910d85dde261ccb0",44:"648c19dc6e4b5d04fa99",45:"2779cbcad4af6715d151",48:"e24ce39f098035f501e3"}[e]}(e);var i=new Error;n=function(t){s.onerror=s.onload=null,clearTimeout(l);var c=o[e];if(0!==c){if(c){var r=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+n+")",i.name="ChunkLoadError",i.type=r,i.request=n,c[1](i)}o[e]=void 0}};var l=setTimeout((function(){n({type:"timeout",target:s})}),12e4);s.onerror=s.onload=n,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=r,a.d=function(e,t,c){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(c,r,function(t){return e[t]}.bind(null,r));return c},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var s=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],i=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var u=i;return n.push([547,0]),c()}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},10:function(e,t){e.exports=window.wp.htmlEntities},102:function(e,t,c){"use strict";c.d(t,"a",(function(){return k}));var r=c(0),o=c(1),n=c(2),a=c(70),s=c(614),i=c(4),l=c.n(i),u=c(11),d=c(16),m=c(35),p=c(613),b=c(10);c(55);const g=({id:e,label:t,popoverContents:c,remove:s,screenReaderLabel:i,className:d=""})=>{const[m,h]=Object(r.useState)(!1),O=Object(u.useInstanceId)(g);if(i=i||t,!t)return null;t=Object(b.decodeEntities)(t);const w=l()("woocommerce-tag",d,{"has-remove":!!s}),j=`woocommerce-tag__label-${O}`,f=Object(r.createElement)(r.Fragment,null,Object(r.createElement)("span",{className:"screen-reader-text"},i),Object(r.createElement)("span",{"aria-hidden":"true"},t));return Object(r.createElement)("span",{className:w},c?Object(r.createElement)(n.Button,{className:"woocommerce-tag__text",id:j,onClick:()=>h(!0)},f):Object(r.createElement)("span",{className:"woocommerce-tag__text",id:j},f),c&&m&&Object(r.createElement)(n.Popover,{onClose:()=>h(!1)},c),s&&Object(r.createElement)(n.Button,{className:"woocommerce-tag__remove",onClick:s(e),label:Object(o.sprintf)(
// Translators: %s label.
Object(o.__)("Remove %s","woocommerce"),t),"aria-describedby":j},Object(r.createElement)(a.a,{icon:p.a,size:20,className:"clear-icon"})))};var h=g;c(54);const O=e=>Object(r.createElement)(m.b,{...e}),w=e=>{const{list:t,selected:c,renderItem:o,depth:n=0,onSelect:a,instanceId:s,isSingle:i,search:l,useExpandedPanelId:u}=e,[d]=u;return t?Object(r.createElement)(r.Fragment,null,t.map((t=>{var m,p;const b=null!==(m=t.children)&&void 0!==m&&m.length&&!i?t.children.every((({id:e})=>c.find((t=>t.id===e)))):!!c.find((({id:e})=>e===t.id)),g=(null===(p=t.children)||void 0===p?void 0:p.length)&&d===t.id;return Object(r.createElement)(r.Fragment,{key:t.id},Object(r.createElement)("li",null,o({item:t,isSelected:b,onSelect:a,isSingle:i,selected:c,search:l,depth:n,useExpandedPanelId:u,controlId:s})),g?Object(r.createElement)(w,{...e,list:t.children,depth:n+1}):null)}))):null},j=({isLoading:e,isSingle:t,selected:c,messages:a,onChange:s,onRemove:i})=>{if(e||t||!c)return null;const l=c.length;return Object(r.createElement)("div",{className:"woocommerce-search-list__selected"},Object(r.createElement)("div",{className:"woocommerce-search-list__selected-header"},Object(r.createElement)("strong",null,a.selected(l)),l>0?Object(r.createElement)(n.Button,{isLink:!0,isDestructive:!0,onClick:()=>s([]),"aria-label":a.clear},Object(o.__)("Clear all","woocommerce")):null),l>0?Object(r.createElement)("ul",null,c.map(((e,t)=>Object(r.createElement)("li",{key:t},Object(r.createElement)(h,{label:e.name,id:e.id,remove:i}))))):null)},f=({filteredList:e,search:t,onSelect:c,instanceId:n,useExpandedPanelId:i,...l})=>{const{messages:u,renderItem:d,selected:m,isSingle:p}=l,b=d||O;return 0===e.length?Object(r.createElement)("div",{className:"woocommerce-search-list__list is-not-found"},Object(r.createElement)("span",{className:"woocommerce-search-list__not-found-icon"},Object(r.createElement)(a.a,{icon:s.a})),Object(r.createElement)("span",{className:"woocommerce-search-list__not-found-text"},t?Object(o.sprintf)(u.noResults,t):u.noItems)):Object(r.createElement)("ul",{className:"woocommerce-search-list__list"},Object(r.createElement)(w,{useExpandedPanelId:i,list:e,selected:m,renderItem:b,onSelect:c,instanceId:n,isSingle:p,search:t}))},k=e=>{const{className:t="",isCompact:c,isHierarchical:a,isLoading:s,isSingle:i,list:m,messages:p=d.a,onChange:b,onSearch:g,selected:h,type:O="text",debouncedSpeak:w}=e,[E,v]=Object(r.useState)(""),_=Object(r.useState)(-1),y=Object(u.useInstanceId)(k),S=Object(r.useMemo)((()=>({...d.a,...p})),[p]),P=Object(r.useMemo)((()=>Object(d.c)(m,E,a)),[m,E,a]);Object(r.useEffect)((()=>{w&&w(S.updated)}),[w,S]),Object(r.useEffect)((()=>{"function"==typeof g&&g(E)}),[E,g]);const x=Object(r.useCallback)((e=>()=>{i&&b([]);const t=h.findIndex((({id:t})=>t===e));b([...h.slice(0,t),...h.slice(t+1)])}),[i,h,b]),N=Object(r.useCallback)((e=>()=>{Array.isArray(e)?b(e):-1===h.findIndex((({id:t})=>t===e.id))?b(i?[e]:[...h,e]):x(e.id)()}),[i,x,b,h]),C=Object(r.useCallback)((e=>{const[t]=h.filter((t=>!e.find((e=>t.id===e.id))));x(t.id)()}),[x,h]);return Object(r.createElement)("div",{className:l()("woocommerce-search-list",t,{"is-compact":c,"is-loading":s,"is-token":"token"===O})},"text"===O&&Object(r.createElement)(j,{...e,onRemove:x,messages:S}),Object(r.createElement)("div",{className:"woocommerce-search-list__search"},"text"===O?Object(r.createElement)(n.TextControl,{label:S.search,type:"search",value:E,onChange:e=>v(e)}):Object(r.createElement)(n.FormTokenField,{disabled:s,label:S.search,onChange:C,onInputChange:e=>v(e),suggestions:[],__experimentalValidateInput:()=>!1,value:s?[Object(o.__)("Loading…","woocommerce")]:h.map((e=>({...e,value:e.name}))),__experimentalShowHowTo:!1})),s?Object(r.createElement)("div",{className:"woocommerce-search-list__list"},Object(r.createElement)(n.Spinner,null)):Object(r.createElement)(f,{...e,search:E,filteredList:P,messages:S,onSelect:N,instanceId:y,useExpandedPanelId:_}))};Object(n.withSpokenMessages)(k)},104:function(e,t){e.exports=window.wp.wordcount},108:function(e,t){e.exports=window.wp.warning},11:function(e,t){e.exports=window.wp.compose},110:function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(260),a=c(35),s=c(102),i=c(11),l=c(218),u=c(18),d=c.n(u),m=c(25),p=c.n(m),b=c(23),g=c(28),h=Object(i.createHigherOrderComponent)((e=>{class t extends r.Component{constructor(...e){super(...e),d()(this,"state",{error:null,loading:!1,variations:{}}),d()(this,"loadVariations",(()=>{const{products:e}=this.props,{loading:t,variations:c}=this.state;if(t)return;const r=this.getExpandedProduct();if(!r||c[r])return;const o=e.find((e=>e.id===r));o.variations&&0!==o.variations.length?(this.setState({loading:!0}),Object(b.g)(r).then((e=>{const t=e.map((e=>({...e,parent:r})));this.setState({variations:{...this.state.variations,[r]:t},loading:!1,error:null})})).catch((async e=>{const t=await Object(g.a)(e);this.setState({variations:{...this.state.variations,[r]:null},loading:!1,error:t})}))):this.setState({variations:{...this.state.variations,[r]:null},loading:!1,error:null})}))}componentDidMount(){const{selected:e,showVariations:t}=this.props;e&&t&&this.loadVariations()}componentDidUpdate(e){const{isLoading:t,selected:c,showVariations:r}=this.props;r&&(!p()(e.selected,c)||e.isLoading&&!t)&&this.loadVariations()}isProductId(e){const{products:t}=this.props;return t.some((t=>t.id===e))}findParentProduct(e){var t;const{products:c}=this.props;return null===(t=c.filter((t=>t.variations&&t.variations.find((({id:t})=>t===e))))[0])||void 0===t?void 0:t.id}getExpandedProduct(){const{isLoading:e,selected:t,showVariations:c}=this.props;if(!c)return null;let r=t&&t.length?t[0]:null;return r?this.prevSelectedItem=r:this.prevSelectedItem&&(e||this.isProductId(this.prevSelectedItem)||(r=this.prevSelectedItem)),!e&&r?this.isProductId(r)?r:this.findParentProduct(r):null}render(){const{error:t,isLoading:c}=this.props,{error:o,loading:n,variations:a}=this.state;return Object(r.createElement)(e,{...this.props,error:o||t,expandedProduct:this.getExpandedProduct(),isLoading:c,variations:a,variationsLoading:n})}}return d()(t,"defaultProps",{selected:[],showVariations:!1}),t}),"withProductVariations"),O=c(34),w=c(4),j=c.n(w),f=c(73);c(155);const k={list:Object(o.__)("Products","woocommerce"),noItems:Object(o.__)("Your store doesn't have any products.","woocommerce"),search:Object(o.__)("Search for a product to display","woocommerce"),updated:Object(o.__)("Product search results updated.","woocommerce")},E=({expandedProduct:e,error:t,instanceId:c,isCompact:i,isLoading:l,onChange:u,onSearch:d,products:m,renderItem:p,selected:b,showVariations:g,variations:h,variationsLoading:w})=>{if(t)return Object(r.createElement)(O.a,{error:t});const E=[...m,...h&&h[e]?h[e]:[]];return Object(r.createElement)(s.a,{className:"woocommerce-products",list:E,isCompact:i,isLoading:l,isSingle:!0,selected:E.filter((({id:e})=>b.includes(e))),onChange:u,renderItem:p||(g?e=>{const{item:t,search:s,depth:i=0,isSelected:u,onSelect:d}=e,m=t.variations&&Array.isArray(t.variations)?t.variations.length:0,p=j()("woocommerce-search-product__item","woocommerce-search-list__item",`depth-${i}`,"has-count",{"is-searching":s.length>0,"is-skip-level":0===i&&0!==t.parent,"is-variable":m>0});if(!t.breadcrumbs.length)return Object(r.createElement)(f.a,{...e,className:j()(p,{"is-selected":u}),isSelected:u,item:t,onSelect:()=>()=>{d(t)()},isLoading:l||w,countLabel:t.variations.length>0?Object(o.sprintf)(/* translators: %1$d is the number of variations of a product product. */
Object(o.__)("%1$d variations","woocommerce"),t.variations.length):null,name:`products-${c}`,"aria-label":Object(o.sprintf)(/* translators: %1$s is the product name, %2$d is the number of variations of that product. */
Object(o._n)("%1$s, has %2$d variation","%1$s, has %2$d variations",t.variations.length,"woocommerce"),t.name,t.variations.length)});const b=Object(n.a)(t.variation)?e:{...e,item:{...e.item,name:t.variation},"aria-label":`${t.breadcrumbs[0]}: ${t.variation}`};return Object(r.createElement)(a.a,{...b,className:p,name:`variations-${c}`})}:null),onSearch:d,messages:k,isHierarchical:!0})};var v;E.defaultProps={isCompact:!1,expandedProduct:null,selected:[],showVariations:!1},t.a=(v=Object(l.a)(h(Object(i.withInstanceId)(E))),e=>{let{selected:t}=e;t=void 0===t?null:t;const c=null===t;return Array.isArray(t)?Object(r.createElement)(v,{...e}):Object(r.createElement)(v,{...e,selected:c?[]:[t]})})},127:function(e,t){e.exports=window.wp.styleEngine},13:function(e,t){e.exports=window.wc.blocksCheckout},131:function(e,t){},14:function(e,t){e.exports=window.wp.apiFetch},146:function(e,t,c){"use strict";var r=c(18),o=c.n(r),n=c(0),a=c(1),s=c(17),i=({imageUrl:e=`${s.n}/block-error.svg`,header:t=Object(a.__)("Oops!","woocommerce"),text:c=Object(a.__)("There was an error loading the content.","woocommerce"),errorMessage:r,errorMessagePrefix:o=Object(a.__)("Error:","woocommerce"),button:i,showErrorBlock:l=!0})=>l?Object(n.createElement)("div",{className:"wc-block-error wc-block-components-error"},e&&Object(n.createElement)("img",{className:"wc-block-error__image wc-block-components-error__image",src:e,alt:""}),Object(n.createElement)("div",{className:"wc-block-error__content wc-block-components-error__content"},t&&Object(n.createElement)("p",{className:"wc-block-error__header wc-block-components-error__header"},t),c&&Object(n.createElement)("p",{className:"wc-block-error__text wc-block-components-error__text"},c),r&&Object(n.createElement)("p",{className:"wc-block-error__message wc-block-components-error__message"},o?o+" ":"",r),i&&Object(n.createElement)("p",{className:"wc-block-error__button wc-block-components-error__button"},i))):null;c(232);class l extends n.Component{constructor(...e){super(...e),o()(this,"state",{errorMessage:"",hasError:!1})}static getDerivedStateFromError(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:Object(n.createElement)(n.Fragment,null,Object(n.createElement)("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}render(){const{header:e,imageUrl:t,showErrorMessage:c=!0,showErrorBlock:r=!0,text:o,errorMessagePrefix:a,renderError:s,button:l}=this.props,{errorMessage:u,hasError:d}=this.state;return d?"function"==typeof s?s({errorMessage:u}):Object(n.createElement)(i,{showErrorBlock:r,errorMessage:c?u:null,header:e,imageUrl:t,text:o,errorMessagePrefix:a,button:l}):this.props.children}}t.a=l},15:function(e,t){e.exports=window.wp.url},155:function(e,t){},159:function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(70),a=c(211),s=c(3),i=c(5),l=c(24);t.a=e=>{const t=(Object(l.useProductDataContext)().product||{}).id||e.productId||0;return t&&1!==t?Object(r.createElement)(i.InspectorControls,null,Object(r.createElement)("div",{className:"wc-block-single-product__edit-card"},Object(r.createElement)("div",{className:"wc-block-single-product__edit-card-title"},Object(r.createElement)("a",{href:`${s.ADMIN_URL}post.php?post=${t}&action=edit`,target:"_blank",rel:"noopener noreferrer"},Object(o.__)("Edit this product's details","woocommerce"),Object(r.createElement)(n.a,{icon:a.a,size:16}))),Object(r.createElement)("div",{className:"wc-block-single-product__edit-card-description"},Object(o.__)("Edit details such as title, price, description and more.","woocommerce")))):null}},16:function(e,t,c){"use strict";c.d(t,"a",(function(){return a})),c.d(t,"c",(function(){return i})),c.d(t,"d",(function(){return l})),c.d(t,"b",(function(){return u}));var r=c(0),o=c(1),n=c(57);const a={clear:Object(o.__)("Clear all selected items","woocommerce"),noItems:Object(o.__)("No items found.","woocommerce"),
/* Translators: %s search term */
noResults:Object(o.__)("No results for %s","woocommerce"),search:Object(o.__)("Search for items","woocommerce"),selected:e=>Object(o.sprintf)(/* translators: Number of items selected from list. */
Object(o._n)("%d item selected","%d items selected",e,"woocommerce"),e),updated:Object(o.__)("Search results updated.","woocommerce")},s=(e,t=e)=>{const c=e.reduce(((e,t)=>{const c=t.parent||0;return e[c]||(e[c]=[]),e[c].push(t),e}),{}),r=Object(n.a)(t,"id"),o=["0"],a=(e={})=>e.parent?[...a(r[e.parent]),e.name]:e.name?[e.name]:[],s=e=>e.map((e=>{const t=c[e.id];return o.push(""+e.id),{...e,breadcrumbs:a(r[e.parent]),children:t&&t.length?s(t):[]}})),i=s(c[0]||[]);return Object.entries(c).forEach((([e,t])=>{o.includes(e)||i.push(...s(t||[]))})),i},i=(e,t,c)=>{if(!t)return c?s(e):e;const r=new RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"i"),o=e.map((e=>!!r.test(e.name)&&e)).filter(Boolean);return c?s(o,e):o},l=(e,t)=>{if(!t)return e;const c=new RegExp(`(${t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")})`,"ig");return e.split(c).map(((e,t)=>c.test(e)?Object(r.createElement)("strong",{key:t},e):Object(r.createElement)(r.Fragment,{key:t},e)))},u=e=>1===e.length?e.slice(0,1).toString():2===e.length?e.slice(0,1).toString()+" › "+e.slice(-1).toString():e.slice(0,1).toString()+" … "+e.slice(-1).toString()},161:function(e){e.exports=JSON.parse('{"name":"woocommerce/single-product","version":"1.0.0","icon":"info","title":"Single Product","description":"Display a single product.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":["wide","full"]},"attributes":{"isPreview":{"type":"boolean","default":false},"productId":{"type":"number"}},"example":{"attributes":{"isPreview":true}},"usesContext":["postId","postType","queryId"],"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}')},17:function(e,t,c){"use strict";c.d(t,"p",(function(){return n})),c.d(t,"n",(function(){return a})),c.d(t,"m",(function(){return s})),c.d(t,"o",(function(){return i})),c.d(t,"k",(function(){return l})),c.d(t,"e",(function(){return u})),c.d(t,"h",(function(){return d})),c.d(t,"l",(function(){return m})),c.d(t,"c",(function(){return p})),c.d(t,"d",(function(){return b})),c.d(t,"g",(function(){return g})),c.d(t,"a",(function(){return w})),c.d(t,"b",(function(){return j})),c.d(t,"i",(function(){return f})),c.d(t,"j",(function(){return k})),c.d(t,"f",(function(){return E}));var r,o=c(3);const n=Object(o.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),a=n.pluginUrl+"images/",s=n.pluginUrl+"build/",i=n.buildPhase,l=null===(r=o.STORE_PAGES.shop)||void 0===r?void 0:r.permalink,u=o.STORE_PAGES.checkout.id,d=(o.STORE_PAGES.checkout.permalink,o.STORE_PAGES.privacy.permalink),m=(o.STORE_PAGES.privacy.title,o.STORE_PAGES.terms.permalink),p=(o.STORE_PAGES.terms.title,o.STORE_PAGES.cart.id),b=o.STORE_PAGES.cart.permalink,g=(o.STORE_PAGES.myaccount.permalink?o.STORE_PAGES.myaccount.permalink:Object(o.getSetting)("wpLoginUrl","/wp-login.php"),Object(o.getSetting)("localPickupEnabled",!1)),h=Object(o.getSetting)("countries",{}),O=Object(o.getSetting)("countryData",{}),w=Object.fromEntries(Object.keys(O).filter((e=>!0===O[e].allowBilling)).map((e=>[e,h[e]||""]))),j=Object.fromEntries(Object.keys(O).filter((e=>!0===O[e].allowBilling)).map((e=>[e,O[e].states||[]]))),f=Object.fromEntries(Object.keys(O).filter((e=>!0===O[e].allowShipping)).map((e=>[e,h[e]||""]))),k=Object.fromEntries(Object.keys(O).filter((e=>!0===O[e].allowShipping)).map((e=>[e,O[e].states||[]]))),E=Object.fromEntries(Object.keys(O).map((e=>[e,O[e].locale||[]])))},174:function(e,t,c){"use strict";c.d(t,"a",(function(){return i})),c.d(t,"b",(function(){return l}));var r=c(0),o=c(2),n=c(87),a=c(198),s=c(76);const i="core/post-excerpt",l="woocommerce/product-query/product-summary";Object(s.a)(i,{blockDescription:n.a,blockIcon:Object(r.createElement)(o.Icon,{icon:a.a}),blockTitle:n.c,variationName:l})},2:function(e,t){e.exports=window.wp.components},218:function(e,t,c){"use strict";var r=c(0),o=c(17),n=c(23),a=c(41),s=c(28);t.a=e=>({selected:t,...c})=>{const[i,l]=Object(r.useState)(!0),[u,d]=Object(r.useState)(null),[m,p]=Object(r.useState)([]),b=o.p.productCount>100,g=async e=>{const t=await Object(s.a)(e);d(t),l(!1)},h=Object(r.useRef)(t);Object(r.useEffect)((()=>{Object(n.h)({selected:h.current}).then((e=>{p(e),l(!1)})).catch(g)}),[h]);const O=Object(a.b)((e=>{Object(n.h)({selected:t,search:e}).then((e=>{p(e),l(!1)})).catch(g)}),400),w=Object(r.useCallback)((e=>{l(!0),O(e)}),[l,O]);return Object(r.createElement)(e,{...c,selected:t,error:u,products:m,isLoading:i,onSearch:b?w:null})}},22:function(e,t){e.exports=window.wc.priceFormat},23:function(e,t,c){"use strict";c.d(t,"h",(function(){return l})),c.d(t,"e",(function(){return u})),c.d(t,"b",(function(){return d})),c.d(t,"i",(function(){return m})),c.d(t,"f",(function(){return p})),c.d(t,"c",(function(){return b})),c.d(t,"d",(function(){return g})),c.d(t,"g",(function(){return h})),c.d(t,"a",(function(){return O}));var r=c(15),o=c(14),n=c.n(o),a=c(3),s=c(17);const i=(e,t)=>{const c=new Map;return e.filter((e=>{const r=t(e);return!c.has(r)&&(c.set(r,e),!0)}))},l=({selected:e=[],search:t="",queryArgs:c={}})=>{const o=(({selected:e=[],search:t="",queryArgs:c={}})=>{const o=s.p.productCount>100,n={per_page:o?100:0,catalog_visibility:"any",search:t,orderby:"title",order:"asc"},a=[Object(r.addQueryArgs)("/wc/store/v1/products",{...n,...c})];return o&&e.length&&a.push(Object(r.addQueryArgs)("/wc/store/v1/products",{catalog_visibility:"any",include:e,per_page:0})),a})({selected:e,search:t,queryArgs:c});return Promise.all(o.map((e=>n()({path:e})))).then((e=>{const t=e.flat();return i(t,(e=>e.id)).map((e=>({...e,parent:0})))})).catch((e=>{throw e}))},u=e=>n()({path:`/wc/store/v1/products/${e}`}),d=()=>n()({path:"wc/store/v1/products/attributes"}),m=e=>n()({path:`wc/store/v1/products/attributes/${e}/terms`}),p=({selected:e=[],search:t})=>{const c=(({selected:e=[],search:t})=>{const c=Object(a.getSetting)("limitTags",!1),o=[Object(r.addQueryArgs)("wc/store/v1/products/tags",{per_page:c?100:0,orderby:c?"count":"name",order:c?"desc":"asc",search:t})];return c&&e.length&&o.push(Object(r.addQueryArgs)("wc/store/v1/products/tags",{include:e})),o})({selected:e,search:t});return Promise.all(c.map((e=>n()({path:e})))).then((e=>{const t=e.flat();return i(t,(e=>e.id))}))},b=e=>n()({path:Object(r.addQueryArgs)("wc/store/v1/products/categories",{per_page:0,...e})}),g=e=>n()({path:`wc/store/v1/products/categories/${e}`}),h=e=>n()({path:Object(r.addQueryArgs)("wc/store/v1/products",{per_page:0,type:"variation",parent:e})}),O=(e,t)=>{if(!e.title.raw)return e.slug;const c=1===t.filter((t=>t.title.raw===e.title.raw)).length;return e.title.raw+(c?"":` - ${e.slug}`)}},232:function(e,t){},24:function(e,t){e.exports=window.wc.wcBlocksSharedContext},25:function(e,t){e.exports=window.wp.isShallowEqual},26:function(e,t){e.exports=window.React},260:function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));const r=e=>null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length},27:function(e,t){e.exports=window.lodash},28:function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));const r=async e=>{if("function"==typeof e.json)try{const t=await e.json();return{message:t.message,type:t.type||"api"}}catch(e){return{message:e.message,type:"general"}}return{message:e.message,type:e.type||"general"}}},3:function(e,t){e.exports=window.wc.wcSettings},31:function(e,t){e.exports=window.wp.escapeHtml},34:function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(31);t.a=({error:e})=>Object(r.createElement)("div",{className:"wc-block-error-message"},(({message:e,type:t})=>e?"general"===t?Object(r.createElement)("span",null,Object(o.__)("The following error was returned","woocommerce"),Object(r.createElement)("br",null),Object(r.createElement)("code",null,Object(n.escapeHTML)(e))):"api"===t?Object(r.createElement)("span",null,Object(o.__)("The following error was returned from the API","woocommerce"),Object(r.createElement)("br",null),Object(r.createElement)("code",null,Object(n.escapeHTML)(e))):e:Object(o.__)("An error has prevented the block from being updated.","woocommerce"))(e))},35:function(e,t,c){"use strict";c.d(t,"a",(function(){return m}));var r=c(0),o=c(4),n=c.n(o),a=c(2);function s(e,t,c){const r=new Set(t.map((e=>e[c])));return e.filter((e=>!r.has(e[c])))}var i=c(10),l=c(16);const u=({label:e})=>Object(r.createElement)("span",{className:"woocommerce-search-list__item-count"},e),d=e=>{const{item:t,search:c}=e,o=t.breadcrumbs&&t.breadcrumbs.length;return Object(r.createElement)("span",{className:"woocommerce-search-list__item-label"},o?Object(r.createElement)("span",{className:"woocommerce-search-list__item-prefix"},Object(l.b)(t.breadcrumbs)):null,Object(r.createElement)("span",{className:"woocommerce-search-list__item-name"},Object(l.d)(Object(i.decodeEntities)(t.name),c)))},m=({countLabel:e,className:t,depth:c=0,controlId:o="",item:m,isSelected:p,isSingle:b,onSelect:g,search:h="",selected:O,useExpandedPanelId:w,...j})=>{var f,k;const[E,v]=w,_=null!=e&&void 0!==m.count&&null!==m.count,y=!(null===(f=m.breadcrumbs)||void 0===f||!f.length),S=!(null===(k=m.children)||void 0===k||!k.length),P=E===m.id,x=n()(["woocommerce-search-list__item",`depth-${c}`,t],{"has-breadcrumbs":y,"has-children":S,"has-count":_,"is-expanded":P,"is-radio-button":b}),N=j.name||`search-list-item-${o}`,C=`${N}-${m.id}`,I=Object(r.useCallback)((()=>{v(P?-1:Number(m.id))}),[P,m.id,v]);return S?Object(r.createElement)("div",{className:x,onClick:I,onKeyDown:e=>"Enter"===e.key||" "===e.key?I():null,role:"treeitem",tabIndex:0},b?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("input",{type:"radio",id:C,name:N,value:m.value,onChange:g(m),onClick:e=>e.stopPropagation(),checked:p,className:"woocommerce-search-list__item-input",...j}),Object(r.createElement)(d,{item:m,search:h}),_?Object(r.createElement)(u,{label:e||m.count}):null):Object(r.createElement)(r.Fragment,null,Object(r.createElement)(a.CheckboxControl,{className:"woocommerce-search-list__item-input",checked:p,...!p&&m.children.some((e=>O.find((t=>t.id===e.id))))?{indeterminate:!0}:{},label:Object(l.d)(Object(i.decodeEntities)(m.name),h),onChange:()=>{p?g(s(O,m.children,"id"))():g(function(e,t,c){const r=s(t,e,"id");return[...e,...r]}(O,m.children))()},onClick:e=>e.stopPropagation()}),_?Object(r.createElement)(u,{label:e||m.count}):null)):Object(r.createElement)("label",{htmlFor:C,className:x},b?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("input",{type:"radio",id:C,name:N,value:m.value,onChange:g(m),checked:p,className:"woocommerce-search-list__item-input",...j}),Object(r.createElement)(d,{item:m,search:h})):Object(r.createElement)(a.CheckboxControl,{id:C,name:N,className:"woocommerce-search-list__item-input",value:Object(i.decodeEntities)(m.value),label:Object(l.d)(Object(i.decodeEntities)(m.name),h),onChange:g(m),checked:p,...j}),_?Object(r.createElement)(u,{label:e||m.count}):null)};t.b=m},36:function(e,t){e.exports=window.wc.wcBlocksRegistry},37:function(e,t){e.exports=window.wp.deprecated},373:function(e,t,c){"use strict";var r=c(18),o=c.n(r),n=c(0),a=c(11),s=c(23),i=c(28);const l=Object(a.createHigherOrderComponent)((e=>class extends n.Component{constructor(...e){super(...e),o()(this,"state",{error:null,loading:!1,product:"preview"===this.props.attributes.productId?this.props.attributes.previewProduct:null}),o()(this,"loadProduct",(()=>{const{productId:e}=this.props.attributes;"preview"!==e&&(e?(this.setState({loading:!0}),Object(s.e)(e).then((e=>{this.setState({product:e,loading:!1,error:null})})).catch((async e=>{const t=await Object(i.a)(e);this.setState({product:null,loading:!1,error:t})}))):this.setState({product:null,loading:!1,error:null}))}))}componentDidMount(){this.loadProduct()}componentDidUpdate(e){e.attributes.productId!==this.props.attributes.productId&&this.loadProduct()}render(){const{error:t,loading:c,product:r}=this.state;return Object(n.createElement)(e,{...this.props,error:t,getProduct:this.loadProduct,isLoading:c,product:r})}}),"withProduct");t.a=l},43:function(e,t){e.exports=window.wp.hooks},48:function(e,t){e.exports=window.wc.wcBlocksSharedHocs},5:function(e,t){e.exports=window.wp.blockEditor},51:function(e,t){e.exports=window.wp.autop},54:function(e,t){},547:function(e,t,c){e.exports=c(567)},548:function(e,t){},55:function(e,t){},567:function(e,t,c){"use strict";c.r(t);var r=c(7),o=c(0),n=c(70),a=c(650),s=c(597),i=c(161),l=c(89),u=c(174),d=c(60);const m=Object(o.createElement)(n.a,{icon:a.a,className:"wc-block-editor-components-block-icon"}),p=[["core/columns",{},[["core/column",{},[["woocommerce/product-image",{showSaleBadge:!1,isDescendentOfSingleProductBlock:!0,imageSizing:d.a.SINGLE}]]],["core/column",{},[["core/post-title",{headingLevel:2,isLink:!0,__woocommerceNamespace:l.b}],["woocommerce/product-rating",{isDescendentOfSingleProductBlock:!0}],["woocommerce/product-price",{isDescendentOfSingleProductBlock:!0}],["core/post-excerpt",{__woocommerceNamespace:u.b}],["woocommerce/add-to-cart-form"],["woocommerce/product-meta"]]]]]],b=["core/columns","core/column",...Object.keys(Object(s.a)(i.name))];var g=c(1),h=c(2),O=c(373),w=c(146),j=c(159);const f=Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 230 100"},Object(o.createElement)("path",{fill:"#E1E3E6",d:"M76 0h11v6H76zm0 11h88v11H76zm0 16h28v6H76zm0 17h154v28H76zm0 39h22v17H76zm28 0h44v17h-44zM0 0h66v66H0z",style:{width:"100%"}}));var k=c(5),E=c(88),v=(c(548),c(110)),_=({attributes:e,setAttributes:t})=>Object(o.createElement)(v.a,{selected:e.productId||0,showVariations:!0,onChange:(e=[])=>{const c=e[0]?e[0].id:0;t({productId:c})}}),y=({isEditing:e,setIsEditing:t})=>Object(o.createElement)(k.BlockControls,null,Object(o.createElement)(h.ToolbarGroup,{controls:[{icon:"edit",title:Object(g.__)("Edit selected product","woocommerce"),onClick:()=>t(!e),isActive:e}]})),S=c(6),P=c(24);const x=e=>e.map((([e,t={},c=[]])=>{const o=c?x(c):[];return Object(r.createBlock)(e,t,o)}));var N=c(651),C=({isLoading:e,product:t,clientId:c})=>{const r=".wc-block-editor-single-product .wc-block-editor-layout",{replaceInnerBlocks:n}=Object(S.useDispatch)("core/block-editor"),a=Object(o.useCallback)((()=>{n(c,x(p),!1)}),[c,n]);return Object(o.createElement)(P.InnerBlockLayoutContextProvider,{parentName:i.name,parentClassName:r},Object(o.createElement)(P.ProductDataContextProvider,{product:t,isLoading:e},Object(o.createElement)(k.InspectorControls,null,Object(o.createElement)(h.PanelBody,{title:Object(g.__)("Layout","woocommerce"),initialOpen:!0},Object(o.createElement)(h.Button,{label:Object(g.__)("Reset layout to default","woocommerce"),onClick:a,isTertiary:!0,className:"wc-block-editor-single-product__reset-layout",icon:N.a},Object(g.__)("Reset layout","woocommerce")))),Object(o.createElement)("div",{className:r},Object(o.createElement)(k.BlockContextProvider,{value:{postId:null==t?void 0:t.id,postType:"product"}},Object(o.createElement)(k.InnerBlocks,{template:p,allowedBlocks:b,templateLock:!1})))))},I=Object(O.a)((({attributes:e,setAttributes:t,error:c,getProduct:r,product:n,isLoading:a,clientId:s})=>{const{productId:l,isPreview:u}=e,[d,p]=Object(o.useState)(!l),b=Object(k.useBlockProps)();return u?f:c?Object(o.createElement)(E.a,{className:"wc-block-editor-single-product-error",error:c,isLoading:a,onRetry:r}):Object(o.createElement)("div",{...b},Object(o.createElement)(w.a,{header:Object(g.__)("Single Product Block Error","woocommerce")},Object(o.createElement)(y,{setIsEditing:p,isEditing:d}),d?Object(o.createElement)(h.Placeholder,{icon:m,label:i.title,className:"wc-block-editor-single-product"},i.description,Object(o.createElement)("div",{className:"wc-block-editor-single-product__selection"},Object(o.createElement)(_,{attributes:e,setAttributes:t}),Object(o.createElement)(h.Button,{isSecondary:!0,onClick:()=>{p(!1)}},Object(g.__)("Done","woocommerce")))):Object(o.createElement)("div",null,Object(o.createElement)(k.InspectorControls,null,Object(o.createElement)(h.PanelBody,{title:Object(g.__)("Product","woocommerce"),initialOpen:!1},Object(o.createElement)(_,{attributes:e,setAttributes:t}))),Object(o.createElement)(j.a,{productId:l}),Object(o.createElement)(C,{clientId:s,product:n,isLoading:a}))))}));Object(r.registerBlockType)(i,{icon:m,edit:I,save:()=>{const e=k.useBlockProps.save();return Object(o.createElement)("div",{...e},Object(o.createElement)(k.InnerBlocks.Content,null))}})},57:function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));const r=(e,t)=>e.reduce(((e,c)=>(e[String(t?c[t]:c)]=c,e)),{})},597:function(e,t,c){"use strict";c.d(t,"a",(function(){return a}));var r=c(36),o=c(0),n=c(17);c.p=n.m,Object(r.registerBlockComponent)({blockName:"woocommerce/product-price",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(35)]).then(c.bind(null,234))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-image",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(4),c.e(32)]).then(c.bind(null,657))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-title",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(4),c.e(48)]).then(c.bind(null,658))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-rating",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(3),c.e(37)]).then(c.bind(null,235))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-rating-stars",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(3),c.e(39)]).then(c.bind(null,361))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-rating-counter",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(3),c.e(38)]).then(c.bind(null,362))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-average-rating",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(23)]).then(c.bind(null,363))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-button",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(3),c.e(25)]).then(c.bind(null,236))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-summary",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(45)]).then(c.bind(null,364))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-sale-badge",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(41)]).then(c.bind(null,156))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-sku",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(43)]).then(c.bind(null,365))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-stock-indicator",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(2),c.e(44)]).then(c.bind(null,366))))}),Object(r.registerBlockComponent)({blockName:"woocommerce/product-add-to-cart",component:Object(o.lazy)((()=>Promise.all([c.e(0),c.e(1),c.e(3),c.e(4),c.e(22)]).then(c.bind(null,659))))});const a=e=>Object(r.getRegisteredBlockComponents)(e)},6:function(e,t){e.exports=window.wp.data},60:function(e,t,c){"use strict";c.d(t,"a",(function(){return r}));let r=function(e){return e.SINGLE="single",e.THUMBNAIL="thumbnail",e}({})},66:function(e,t,c){"use strict";c.d(t,"c",(function(){return s})),c.d(t,"b",(function(){return i})),c.d(t,"a",(function(){return l}));var r=c(0),o=c(1),n=c(70),a=c(166);const s=Object(o.__)("Product Title","woocommerce"),i=Object(r.createElement)(n.a,{icon:a.a,className:"wc-block-editor-components-block-icon"}),l=Object(o.__)("Display the title of a product.","woocommerce")},7:function(e,t){e.exports=window.wp.blocks},73:function(e,t,c){"use strict";var r=c(0),o=c(2),n=c(35),a=c(4),s=c.n(a);t.a=({className:e,item:t,isSelected:c,isLoading:a,onSelect:i,disabled:l,...u})=>Object(r.createElement)(r.Fragment,null,Object(r.createElement)(n.a,{...u,key:t.id,className:e,isSelected:c,item:t,onSelect:i,disabled:l}),c&&a&&Object(r.createElement)("div",{key:"loading",className:s()("woocommerce-search-list__item","woocommerce-product-attributes__item","depth-1","is-loading","is-not-active")},Object(r.createElement)(o.Spinner,null)))},76:function(e,t,c){"use strict";c.d(t,"a",(function(){return o}));var r=c(7);function o(e,{blockDescription:t,blockIcon:c,blockTitle:o,variationName:n}){Object(r.registerBlockVariation)(e,{description:t,name:n,title:o,isActive:e=>e.__woocommerceNamespace===n,icon:{src:c},attributes:{__woocommerceNamespace:n},scope:["block","inserter"]})}},78:function(e,t){e.exports=window.wp.dom},8:function(e,t){e.exports=window.wc.wcBlocksData},87:function(e,t,c){"use strict";c.d(t,"c",(function(){return s})),c.d(t,"b",(function(){return i})),c.d(t,"a",(function(){return l}));var r=c(0),o=c(1),n=c(70),a=c(198);const s=Object(o.__)("Product Summary","woocommerce"),i=Object(r.createElement)(n.a,{icon:a.a,className:"wc-block-editor-components-block-icon"}),l=Object(o.__)("Display a short description about a product.","woocommerce")},88:function(e,t,c){"use strict";var r=c(0),o=c(1),n=c(70),a=c(212),s=c(4),i=c.n(s),l=c(2),u=c(34);c(131),t.a=({className:e,error:t,isLoading:c=!1,onRetry:s})=>Object(r.createElement)(l.Placeholder,{icon:Object(r.createElement)(n.a,{icon:a.a}),label:Object(o.__)("Sorry, an error occurred","woocommerce"),className:i()("wc-block-api-error",e)},Object(r.createElement)(u.a,{error:t}),s&&Object(r.createElement)(r.Fragment,null,c?Object(r.createElement)(l.Spinner,null):Object(r.createElement)(l.Button,{isSecondary:!0,onClick:s},Object(o.__)("Retry","woocommerce"))))},89:function(e,t,c){"use strict";c.d(t,"a",(function(){return i})),c.d(t,"b",(function(){return l}));var r=c(0),o=c(2),n=c(66),a=c(166),s=c(76);const i="core/post-title",l="woocommerce/product-query/product-title";Object(s.a)(i,{blockDescription:n.a,blockIcon:Object(r.createElement)(o.Icon,{icon:a.a}),blockTitle:n.c,variationName:l})},9:function(e,t){e.exports=window.wp.primitives}});